.class Lcom/baidu/mobads/production/q;
.super Ljava/util/TimerTask;
.source "SourceFile"


# instance fields
.field final synthetic a:Lcom/baidu/mobads/interfaces/utils/IXAdPackageUtils;

.field final synthetic b:Landroid/content/Context;

.field final synthetic c:Ljava/lang/String;

.field final synthetic d:Ljava/util/Timer;

.field final synthetic e:Ljava/lang/String;

.field final synthetic f:Lcom/baidu/mobads/production/p;


# direct methods
.method constructor <init>(Lcom/baidu/mobads/production/p;Lcom/baidu/mobads/interfaces/utils/IXAdPackageUtils;Landroid/content/Context;Ljava/lang/String;Ljava/util/Timer;Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/baidu/mobads/production/q;->f:Lcom/baidu/mobads/production/p;

    iput-object p2, p0, Lcom/baidu/mobads/production/q;->a:Lcom/baidu/mobads/interfaces/utils/IXAdPackageUtils;

    iput-object p3, p0, Lcom/baidu/mobads/production/q;->b:Landroid/content/Context;

    iput-object p4, p0, Lcom/baidu/mobads/production/q;->c:Ljava/lang/String;

    iput-object p5, p0, Lcom/baidu/mobads/production/q;->d:Ljava/util/Timer;

    iput-object p6, p0, Lcom/baidu/mobads/production/q;->e:Ljava/lang/String;

    invoke-direct {p0}, Ljava/util/TimerTask;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/q;->f:Lcom/baidu/mobads/production/p;

    invoke-static {v0}, Lcom/baidu/mobads/production/p;->a(Lcom/baidu/mobads/production/p;)I

    move-result v0

    iget-object v1, p0, Lcom/baidu/mobads/production/q;->f:Lcom/baidu/mobads/production/p;

    invoke-static {v1}, Lcom/baidu/mobads/production/p;->b(Lcom/baidu/mobads/production/p;)I

    move-result v1

    if-lt v0, v1, :cond_1

    .line 2
    iget-object v0, p0, Lcom/baidu/mobads/production/q;->f:Lcom/baidu/mobads/production/p;

    invoke-static {v0}, Lcom/baidu/mobads/production/p;->a(Lcom/baidu/mobads/production/p;)I

    move-result v0

    iget-object v1, p0, Lcom/baidu/mobads/production/q;->f:Lcom/baidu/mobads/production/p;

    invoke-static {v1}, Lcom/baidu/mobads/production/p;->c(Lcom/baidu/mobads/production/p;)I

    move-result v1

    if-ge v0, v1, :cond_0

    .line 3
    iget-object v0, p0, Lcom/baidu/mobads/production/q;->a:Lcom/baidu/mobads/interfaces/utils/IXAdPackageUtils;

    iget-object v1, p0, Lcom/baidu/mobads/production/q;->b:Landroid/content/Context;

    iget-object v2, p0, Lcom/baidu/mobads/production/q;->c:Ljava/lang/String;

    invoke-interface {v0, v1, v2}, Lcom/baidu/mobads/interfaces/utils/IXAdPackageUtils;->isForeground(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 4
    iget-object v0, p0, Lcom/baidu/mobads/production/q;->d:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    .line 5
    iget-object v1, p0, Lcom/baidu/mobads/production/q;->a:Lcom/baidu/mobads/interfaces/utils/IXAdPackageUtils;

    iget-object v2, p0, Lcom/baidu/mobads/production/q;->b:Landroid/content/Context;

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/baidu/mobads/production/q;->f:Lcom/baidu/mobads/production/p;

    invoke-static {v0}, Lcom/baidu/mobads/production/p;->a(Lcom/baidu/mobads/production/p;)I

    move-result v4

    iget-object v5, p0, Lcom/baidu/mobads/production/q;->e:Ljava/lang/String;

    iget-object v6, p0, Lcom/baidu/mobads/production/q;->c:Ljava/lang/String;

    invoke-interface/range {v1 .. v6}, Lcom/baidu/mobads/interfaces/utils/IXAdPackageUtils;->sendAPOIsSuccess(Landroid/content/Context;ZILjava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/baidu/mobads/production/q;->d:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    .line 7
    iget-object v1, p0, Lcom/baidu/mobads/production/q;->a:Lcom/baidu/mobads/interfaces/utils/IXAdPackageUtils;

    iget-object v2, p0, Lcom/baidu/mobads/production/q;->b:Landroid/content/Context;

    const/4 v3, 0x1

    const/4 v4, 0x0

    iget-object v5, p0, Lcom/baidu/mobads/production/q;->e:Ljava/lang/String;

    iget-object v6, p0, Lcom/baidu/mobads/production/q;->c:Ljava/lang/String;

    invoke-interface/range {v1 .. v6}, Lcom/baidu/mobads/interfaces/utils/IXAdPackageUtils;->sendAPOIsSuccess(Landroid/content/Context;ZILjava/lang/String;Ljava/lang/String;)V

    .line 8
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/baidu/mobads/production/q;->f:Lcom/baidu/mobads/production/p;

    invoke-static {v0}, Lcom/baidu/mobads/production/p;->d(Lcom/baidu/mobads/production/p;)I

    return-void
.end method
